﻿using MonitorPrism_Practice.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MonitorPrism_Practice.Services
{
    public interface IPlcService
    {
        Task<bool> OpenAsync(CancellationToken token = default);
      
        void Disconnect();

        void ReadData(InterfaceReciveDataModel interfaceReciveDataModel);

        void WriteData(InterfaceReciveDataModel interfaceReciveDataModel);
        bool IsConnected { get; } 
        //a
        //b
    }
}
